package org.sxdata.jingwei.util.CommonUtil;

import java.io.Closeable;
import java.io.IOException;

/**
 * Created by wangwenhu on 2018/6/13.
 */
public class CloseableUtil {
	public static <T extends Closeable> void close(T t){
		if(t!=null){
			try {
				t.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
}
